<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // 普通函数没有返回值, undefined, 函数只要被async修饰过后, 返回值是promise对象
      async function fn() {
        console.log(1234);
        return 100;
      }
      console.log(fn());

      // vuex中的actions所有的函数 返回值默认都是promise对象
    </script>
  </body>
</html>
